package com.tjhzzx.ibmsSupervisor.model.dashboard;

import javax.baja.naming.BOrd;
import javax.baja.sys.BInteger;
import javax.baja.sys.Property;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;

public class BGauge extends BBaseChart {

  public BGauge() {
    setTitle("Gauge#");
  }

  public static final Property fontSize = newProperty(0, "16px", null);

  public String getFontSize() { return getString(fontSize); }

  public void setFontSize(String v) { setString(fontSize, v, null); }

  public static final Property min = newProperty(0, BInteger.make(0), null);
  
  public int getMin() { return getInt(min); }
  
  public void setMin(int v) { setInt(min, v, null); }

  public static final Property max = newProperty(0, BInteger.make(100), null);
  
  public int getMax() { return getInt(max); }
  
  public void setMax(int v) { setInt(max, v, null); }

  public static final Property unit = newProperty(0, "KWH", null);

  public String getUnit() { return getString(unit); }
  
  public void setUnit(String v) { setString(unit, v, null); }

  public static final Property ord = newProperty(0, BOrd.DEFAULT, null);
  
  public BOrd getOrd() { return (BOrd)get(ord); }
  
  public void setOrd(BOrd v) { set(ord, v, null); }


  @Override
  public Type getType() { return TYPE; }
  public static final Type TYPE = Sys.loadType(BGauge.class);

}